package com.smart.six.event;

import org.springframework.context.ApplicationListener;

/**
 * MailSend事件监听器
 *
 * @author junrui.wang
 * @create 2018/7/18
 */
public class MailSendListener implements ApplicationListener<MailSendEvent> {

    //只对MailSendEvent事件进行处理
    public void onApplicationEvent(MailSendEvent event) {
        System.out.println("MailSendListener:向" + event.getTo() + "发送了一份邮件");
    }
}
